package com.linux.huhx.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

import java.util.Map;

/**
 * @Author: huhx
 * @Date: 2017-12-15 上午 11:16
 * @Desc: 定义一个切面
 */
@Aspect
public class LittleUserfulAspect {

    @Pointcut("execution(* com.linux.huhx.business.service.MyAspectService2.*(..)) && args(map,..)")
    public void anyMethod(Map<String, String> map) {}

    @Before(value = "anyMethod(map)")
    public void beforeExecute(Map map) {
        System.out.println("before execute." + map);
    }
}
